<template>
	<view class="page">
		<view class="title">{{list.title}}</view>
		<view class="time">{{list.create_time}}</view>
		<!-- <view v-html="content"></view> -->
		 <rich-text :nodes="list.content"></rich-text>
	</view>
</template>

<script>
	import {dns} from '@/pages/dns.js'
	export default {
		data(){
			return {
				list: null
			}
		},
		onLoad(e) {
			var id = e.id
			this.getDetailList(id)
		},
		methods:{
			getDetailList(id){
				uni.request({
					method: 'GET',
					data: {
						id: id
					},
					url: dns + 'information/detail',
					success: (res)=>{
						console.log(res)
						if(res.data.status == 1){
							this.list = res.data.data;
						}
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.page{
		padding: 20upx 30upx;
		.title{
			font-size: 34upx;
			margin-bottom: 20upx;
			font-weight: 600;
		}
		.time{
			font-size: 24upx;
			color: #9a9a9a;
			margin-bottom: 30upx;
			text-align: right;
		}
	}
</style>
